{* Smarty *}

	<img src="img/welcome.png" style="padding:6;">
	<br>
	<div class="text_big"  style="position:relative; padding:0 0 0 6; margin:0 0 -3 0;">Your Account</div>
	<img src="img/line_big.gif" style="padding:0 0 0 6;" >

	<table align="center" id="content_text">
		<tr>                           
		        <td colspan="2" align="center">
				<span style="background-color: #4094D7; color: #ffffff; padding: 6px; font-family: verdana; font-size: 12px; text-align: left; font-weight:lighter;">My orders :: <b>{$acount.client_name}</b></span>
			</td>
		</tr>

		<tr>
		        <td colspan="2" align="center">
			  {$msg_box}
			</td>
		</tr>

	</table>

	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr valign="top">
		<td style="padding:0 0 0 5;">
                {include file="../include/facePlugins/ccplugin/tpl/acc_left_menu.tpl.php"}
		</td>
	<td width="100%" align="center" id="content_text">
	        <table border="0" cellpadding="0" cellspacing="0">
		<tr>
		        <td align="center" width="100%">
<!--**************************** Orders ************************************************-->
                <span class="title">Orders</span>
				<table width="100%" border="0" cellspacing="2" cellpadding="1" class="list">
  				<tr>
				    <!--<th nowrap1>Order #ID</th>-->
				    <th >Date</th>
				    <th>Price</th>
				    <th>Status</th>
				    <th nowrap1><div style="font-size:9px;">Order Tracking</div></th>
                    <th nowrap1><div style="font-size:9px;">Order Shipment</div></th>

				</tr>

			{if $no_orders == 'true'} <tr><td colspan='6'><center> No orders was placed here yet </center> </td> </tr>
			{/if}
			{foreach from=$orders item=order}

  				<tr class="{cycle values='dark,light' advance=true}">
				    <!--<td><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}">{$order.id}</a></td>-->
				    <td width="65" align="right"><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}"><div style="font-size:9px;">{$order.pubdate}</div></a></td>
				    <td align="right"><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}"><div style="font-size:9px;">${$order.price}</div></a></td>
				    <td align="right"><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}"><div style="font-size:9px;">{$order.status}</div></a></td>
			{if $order.order_tn != '' and $order.provider != ''}
				    <td align="right"><a href="#" onclick="javascript: window.open('{geturl plugin='shiptrack' method='null' params='page=check&n='}{$order.order_tn}&p={$order.provider}');"><div style="font-size:9px;">{$order.provider} {$order.order_tn}</div></a></td>
			{else}
				    <td align="right"><center>-</center></td>
			{/if}
			
            {if "" != $order.shipment}
                    <td align="right"><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}"><div style="font-size:9px;">{$order.shipment}</div></a></td>
            {else}
                    <td align="right"><center>-</center></td>
            {/if}

			{/foreach}
                </tr>
				</table>			 

                <br />
                <br />

<!--**************************** Orders Return************************************************-->
                <span class="title">Returns</span>
                <table width="100%" border="0" cellspacing="2" cellpadding="1" class="list">
                <tr >
                    <!--<th nowrap1>Order #ID</th>-->
                    <th>Date</th>
                    <th>Price</th>
                    <th>Status</th>
                    <!--<th nowrap1 <div style="font-size:9px;">Order Tracking</th>
                    <th nowrap1 <div style="font-size:9px;">Order Shipment</th>-->

                  </tr>
			{if $no_orders == 'true'} <tr><td colspan='6'><center> No orders was placed here yet </center> </td> </tr>
			{/if}

            {foreach from=$returns item=order}
                <tr class="{cycle values='dark,light' advance=true}" >
                    <!--<td><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}">{$order.id}</a></td>-->
                    <td  width="122" align="right"><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}"><div style="font-size:9px;">{$order.pubdate}</div></a></td>
                    <td align="right"><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}"><div style="font-size:9px;">${$order.price}</div></a></td>
                    <td align="right"><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}"><div style="font-size:9px;">{$order.status}</div></a></td>
<!--            {if $order.order_tn != '' and $order.provider != ''}
                    <td><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}"><div style="font-size:9px;">{$order.status}</div></a></td>
            {else}
                    <td><center>-</center></td>
            {/if}
            {if "" != $order.shipment}
                    <td><a href="{geturl plugin='ccontrl' method='null' params='page=order_details&id='}{$order.id}"><div style="font-size:9px;">{$order.shipment}</div></a></td>
            {else}
                    <td><center>-</center></td>
            {/if}-->

            {/foreach}
                  </tr>
                </table>             




			</td>
		</tr>
		</table>



	</td>
	</tr>
	</table>





